<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* .abc + div{
            color:red
        } */
        .box > p{
            color:red
        }
    </style>
</head>

<body>
    <div class="box">
        <p class="abc" name="abc">
            000
            <span>666</span>
        </p>
        <div>1</div>
        <div>2</div>
    </div>
    <script>
        document.getElementsByTagName('p')[0].style.color = 'pink'
    </script>
</body>

</html>